#include "UniformBuffer.h"

void Gut::UniformBuffer::Upload(const void *data, size_t off, size_t len) const
{
    glBindBuffer(GL_UNIFORM_BUFFER, UBO);
    glBufferSubData(GL_UNIFORM_BUFFER, off, len, data);
    glBindBuffer(GL_UNIFORM_BUFFER, 0);
}

void Gut::UniformBuffer::Upload(const void *data, size_t len) const
{
    Upload(data, 0, len);
}